package com.hpeu_12.day1225;

import java.util.Scanner;

public class HomeWork07 {
	public static void max(int x,int y ,int z) {
		int i =x>y? x:y;
		int j =i>z? i:z;
		System.out.println("最大值为:"+j);
	}
	
	public static void max(Double x,Double y ,Double z) {
		double i =x>y? x:y;
		double j =i>z? i:z;
		System.out.println("最大值为:"+j);
	}
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入三个正整数：");
		int x1 = scanner.nextInt();
		int y1 = scanner.nextInt();
		int z1 = scanner.nextInt();
		System.out.println("请输入三个double数：");
		double x2 = scanner.nextDouble();
		double y2 = scanner.nextDouble();
		double z2 = scanner.nextDouble();
		max(x1,y1,z1);
		max(x2,y2,z2);
	}

}
